package com.bt.mapper;

import com.bt.entity.YddArticle;
import com.bt.entity.YddUser;
import com.bt.vo.UserDateList2VO;
import com.bt.vo.UserMyArticlePageVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Description TODO
 * @Author XJL
 * @Date 2023-05-04 15:12
 */
@Mapper
public interface UserMapper {

    /**
     * 我的文章
     * @return
     */
    Page<UserMyArticlePageVO> page();


    /**
     * 我的收藏/点赞文章
     *
     * @param type
     * @return
     */
    Page<UserDateList2VO> userDataList(Integer type);


    /**
     * 修改文章
     * @param yddArticle
     */
    void update(YddArticle yddArticle);


    /**
     * 修改用户资料
     * @param yddUser
     */
    void updateUser(YddUser yddUser);

}
